import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url: '/crm/permission/list',
    method: 'get',
    params: params
  })
}
export function roleList() {
  console.log(444444444444444444444)
  return request({
    url: '/crm/permission/roleList',
    method: 'get',
    // params: params
  })
}
export function updateDeleteStatus(params) {
  return request({
    url: '/crm/permission/remove',
    method: 'post',
    params: params
  })
}
export function update(data) {
  return request({
    url: '/crm/permission/update',
    method: 'post',
    data: data
  })
}
export function AddNewmember(params) {
  return request({
    url: '/crm/permission/save',
    method: 'post',
    params: params
  })
}
//
// export function updateEdit(params) {
//   return request({
//     url: '/crm/permission/update',
//     method: 'post',
//     params: params
//   })
// }